package com.demo.string;

import org.junit.jupiter.api.Test;

public class StringDemo {

    @Test
    public void changeParams() {
        //可变参数列表
        getParams("one", "two");
    }

    private void getParams(String... params) {
        for (String param : params) {
            System.out.println("可变参数" + param);
        }
    }
}
